//
//  BRPaymentModel.h
//  BrezzeSaaS
//
//  Created by IOS on 2021/11/23.
//  Copyright © 2021 Brezze GWG. All rights reserved.
//

#import "BRBaseModel.h"

NS_ASSUME_NONNULL_BEGIN

@class BRPayResponseModel;

@interface BRPaymentModel : BRBaseModel

/// 银行卡后4位
@property (nonatomic,strong) NSString *bankNo;

/// 支付金额
@property (nonatomic,strong) NSDecimalNumber *amount;

/// 支付秘钥
@property (nonatomic,strong) NSString *clientSecret;

/// 错误理由
@property (nonatomic,strong) NSString *failedReason;
/// 订单号
@property (nonatomic,strong) NSString *orderNo;
/// 支付流水号
@property (nonatomic,strong) NSString *payOrderNo;
/// paypal支付链接
@property (nonatomic,strong) NSString *payLink;
/// 支付方式 1卡 2亲情 3Apple 4Google 5datatrans
@property (nonatomic,strong) NSString *paymentMethod;
/// 支付时间
@property (nonatomic,strong) NSString *paymentTime;
/// datarans支付的订单号
@property (nonatomic,strong) NSString *refno;
/// 是否成功 1成功 2失败 3需要校验
@property (nonatomic,assign) NSInteger success;
/// 流水类型：1-租借 2-租金退款 3-会员 4-会员退款 5-押金 6-押金退款 7-罚金 8-罚金退款 9-添加卡 10-添加卡退款 11-优惠券 12-优惠券退款 19-充电卡 20-充电卡退款
@property (nonatomic,assign) NSInteger type;

@property (nonatomic,strong) NSDecimalNumber *taxAmount;
@property (nonatomic,assign) CGFloat tax;

/// 响应类似
@property (nonatomic,strong) BRPayResponseModel *payResponse;

@end

/**
 展示模式:
 ud:Redirect 跳转链接的方式
 iframe:lFrame 内嵌链接的方式
 fomm:HTML表单提交
 qr_code:二维码的文字内容
 qr_code_url:二维码的图片链接
 bar_code:条形码
 app:应用:Android、i0S、微信小程序、微信公众号等，需要做自定义处理的
 
 */
@interface BRPayResponseModel : BRBaseModel

@property (nonatomic,assign) NSInteger status;

@property (nonatomic,strong) NSString *displayContent;

@property (nonatomic,strong) NSString *displayMode;

@end



@interface BRPreRespModel : BRBaseModel

//data        object
///message        string
@property (nonatomic,strong) NSString *channelErrorMsg;
@property (nonatomic,strong) NSString *channelErrorCode;
///orderId        string
@property (nonatomic,strong) NSString *channelOrderNo;
///payLink    支付链接    string
@property (nonatomic,strong) NSString *displayContent;
//state        string
@property (nonatomic,strong) NSString *state;
///success        boolean
@property (nonatomic,assign) BOOL success;
//app：应用：
@property (nonatomic,strong) NSString *displayMode;
@property (nonatomic,assign) NSInteger status;

@end

@interface BRPreRentModel : BRBaseModel


///depositAmount    押金金额    number
@property (nonatomic,strong) NSDecimalNumber *depositAmount;
///order    充电宝订单    OrderPb    OrderPb
@property (nonatomic,strong) NSDictionary *order;
///preAuthAmount    预授权金额    number
@property (nonatomic,strong) NSDecimalNumber *preAuthAmount;
///preAuthAmount    预付款金额    number
@property (nonatomic,strong) NSDecimalNumber *prepaymentAmount;
///rentType    租借类型：1.卡预授权 2.预授权谷歌支付 3.预授权苹果支付    integer(int32)
@property (nonatomic,assign) NSInteger rentType;
///resp    支付数据    PaymentResponse    PaymentResponse
@property (nonatomic,strong) BRPreRespModel *resp;
///scene    租借场景：1.预授权租借 2.已授权租借 3.白名单租借 4.已交押金租借
@property (nonatomic,assign) NSInteger scene;

@property (nonatomic,assign) NSInteger status;
@property (nonatomic,assign) NSInteger success;
@property (nonatomic,strong) NSString *clientSecret;
@property (nonatomic,strong) NSString *failedReason;
@property (nonatomic,assign) NSInteger amount;
@property (nonatomic,assign) NSString *orderNo;
@end




NS_ASSUME_NONNULL_END
